home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8710 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.polymtl.ca!von-neumann!bluefox
  2. From: bluefox@info.polymtl.ca (Michael Gaudette)
  3. Newsgroups: comp.lang.c++
  4. Subject: How can I include IOSTREAM.H only once?
  5. Date: 26 Feb 1996 04:51:44 GMT
  6. Organization: Ecole Polytechnique de Montreal
  7. Message-ID: <4gre90$oei@service.polymtl.ca>
  8. NNTP-Posting-Host: von-neumann.info.polymtl.ca
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I am presently engaged in what is usually called "the learning process", 
  12. and I've been programming simple programs with classes.  Because of this, 
  13. I have had to #include <iostream.h> in most of my "class.cpp" files AND 
  14. in my main program. This (added to conio.h and all the other standard 
  15. libraries) usually result in a simple program being 20000 lines long.
  16. Is there any way (using Borland v4.5) to make the compiler only link 
  17. those files ONCE?
  18.  
  19. Thanks in advance for any help I may receive
  20.  
  21. ------------------------------------------------------------------------------
  22. Michael Gaudette                       bluefox@info.polymtl.ca  
  23. Computer Engineering student             
  24. Ecole Polytechnique de Montreal                  "Trust No One" - The X-Files
  25.